import 'package:flutter/material.dart';

class Home extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar:AppBar(
        title: Text("UI 组件例子Demo"),
      ) ,
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RaisedButton(
              child: Text("基础组件"),
              onPressed: (){
                Navigator.of(context).pushNamed('/base/base');
              },
            ),
            RaisedButton(
              child: Text("布局类组件"),
              onPressed: (){
                Navigator.of(context).pushNamed('/layout/layout');
              },
            ),
            RaisedButton(
              child: Text("容器类组件"),
              onPressed: () {
                Navigator.of(context).pushNamed('/container/container');
              },
            ),
            RaisedButton(
              child: Text("可滚动组件"),
              onPressed: (){
                Navigator.of(context).pushNamed('/scroll/scroll');
              },
            ),
            RaisedButton(
              child: Text("功能型组件"),
              onPressed: (){
                Navigator.of(context).pushNamed('/function/function');
              },
            ),
            RaisedButton(
              child: Text("自定义组件"),
              onPressed: (){
                Navigator.of(context).pushNamed('/custom/custom');
              },
            ),
          ],
        ),
      ),

    );
  }
}